import request from "@/utils/request";

// 分页
export function pageData(params){
  return request({
    url:'/dictRest/page',
    method:'get',
    params
  })
}

export function create(data){
  return request({
    url:'/dictRest/create',
    method:'post',
    data
  })
}


export function update(data){
  return request({
    url:'/dictRest/update',
    method:'put',
    data
  })
}


export function removeById(id){
  return request({
    url: `/dictRest/remove?id=${id}`,
    method: 'delete',
  })
}

